package sui;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;

public class CMBModel  extends JComboBox{
	DefaultComboBoxModel dfm;
	String key;
	String value;
	@Override
	public void addItem(Object anObject) {
		dfm=(DefaultComboBoxModel) this.getModel();
		
		this.setModel(new DefaultComboBoxModel());
		dfm.addElement(anObject);
		super.addItem(anObject);
	}
	
	
}
